package cn.yunhe.biz;

import cn.yunhe.dao.NewsDao;
import cn.yunhe.pojo.News;

import java.util.List;

public class NewsBiz {
    private NewsDao newsDao;

    public List<News> getAllNews(){
      return   newsDao.getAllNews();
    }

    public List<News> getNews(News news){
        return newsDao.getNews(news);
    }



    public NewsDao getNewsDao() {
        return newsDao;
    }

    public void setNewsDao(NewsDao newsDao) {
        this.newsDao = newsDao;
    }
}
